package com.wits.platform.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;
@Embeddable
public class SysTabDPK implements Serializable{


	
	/**
	 * 
	 */
	private static final long serialVersionUID = 137792771204706735L;

	private String thId;
	
	private String tdId;
	
	public SysTabDPK(){
		
	}
	
	public SysTabDPK(String thId,String tdId){
		this.thId=thId;
		this.tdId=tdId;
	}

	@Column(name="th_id",length=36,nullable=true)
	public String getThId() {
		return thId;
	}

	public void setThId(String thId) {
		this.thId = thId;
	}

	@Column(name="td_id",length=32)
	public String getTdId() {
		return tdId;
	}

	public void setTdId(String tdId) {
		this.tdId = tdId;
	}


    @Override 
    public int hashCode() { 
        final int prime = 31; 
        int result = 1; 
        result = prime * result + ((thId == null) ? 0 : thId.hashCode()); 
        result = prime * result    + ((tdId == null) ? 0 : tdId.hashCode()); 
        return result; 
    } 
 
    @Override 
    public boolean equals(Object obj) { 
        if (this == obj) 
            return true; 
        if (obj == null) 
            return false; 
        if (getClass() != obj.getClass()) 
            return false; 
        final SysTabDPK other = (SysTabDPK) obj; 
        if (thId == null) { 
            if (other.thId != null) 
                return false; 
        } else if (!thId.equals(other.thId)) 
            return false; 
            if (tdId == null) { 
                if (other.tdId != null) 
                    return false; 
            } else if (!tdId.equals(other.tdId)) 
                return false; 
        return true; 
    }
}
